/**
 * Created by baidm in 2022/5/8 on 17:06
 */
export default function () {

    // 初始化图表公共方法
    const init3DChart = (elementId, option) => {
        let chartDom = document.getElementById(elementId);
        let myChart = new Highcharts.Chart(chartDom, option);
        window.onresize = () => {
            myChart.resize()
        }
        return myChart
    }

    return {
        init3DChart
    }
}